package cn.zwk.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@Component
@ConfigurationProperties(prefix = "")
public class TemplateConfig {
    private Global global;
    private List<Template> templates;
    
    @Data
    public static class Global {
        private String remoteUrl;
        private boolean waitResponse = true;
    }
    
    @Data
    public static class Template {
        private String name;
        private String path;
        private int count;
        private long startTimestamp;
        private int intervalMs;
        private int replicas;
    }
}